<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/CampsitePeople.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/mall/mergerCampers.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '营员合并',
        name: 'CampsitePeople',
        url: '/V_CampsitePeopleMerge/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: {
        head_img: [],
        gender: '',
        height: '',
        name: '',
        IdCard: '',
        IdCardType: '',
        shoeSize: '',
        parentsIdCard: '',
        parentsName: '',
        parentsPhone: '',
        plateNum: '',
        skiLevel: '',
        weight: '',
        remarks: '',
        modifier: '',
        modifyDate: '',
        modifyID: '',
        createDate: '',
        createID: '',
        creator: '',
      },
      editFormOptions: [],
      searchFormFields: { gender: '', IdCard: '', IdCardType: '', name: '', parentsName: '', parentsPhone: '' },
      searchFormOptions: [
        [
          { title: '姓名', field: 'name', type: 'text' },
          { dataKey: 'gender', data: [], title: '性别', field: 'gender', type: 'select' },
          { title: '证件号', field: 'IdCard', type: 'text' },
        ],
        [
          { dataKey: 'certificate_type', data: [], title: '证件类型', field: 'IdCardType', type: 'select' },
          { title: '监护人姓名', field: 'parentsName', type: 'text' },
          { title: '监护人手机', field: 'parentsPhone', type: 'text' },
        ],
      ],
      columns: [
        { field: 'head_img', title: '头像', type: 'imgupgrade', width: 90, align: 'left' },
        { field: 'name', title: '姓名', type: 'string', width: 90, align: 'left' },
        { field: 'gender', title: '性别', type: 'int', bind: { key: 'gender', data: [] }, width: 90, align: 'left' },
        //    {field:'height',title:'身高',type:'string',width:90,align:'left'},
        { field: 'IdCard', title: '证件号', type: 'string', width: 220, align: 'left' },
        //    {field:'IdCardType',title:'证件类型',type:'int',bind:{ key:'certificate_type',data:[]},width:90,align:'left'},
        //    {field:'shoeSize',title:'鞋码',type:'string',width:90,align:'left'},
        //    {field:'skiLevel',title:'滑雪水平',type:'string',width:220,align:'left'},
        //    {field:'uid',title:'guid',type:'string',width:90,align:'left'},
        //    {field:'weight',title:'体重',type:'string',width:90,align:'left'},
        //    {field:'plateNum',title:'单双板',type:'int',width:90,align:'left'},
        //     {field:'parentsName',title:'监护人姓名',type:'string',width:90,align:'left'},
        { field: 'parentsPhone', title: '营员电话', type: 'string', width: 90, align: 'left' },
        { field: 'campNum', title: '参营次数', type: 'string', width: 90, align: 'left' },
        { field: 'memberPhone', title: '所属会员', type: 'string', width: 90, align: 'left' },
        //    {field:'parentsIdCard',title:'监护人证件号',type:'string',width:220,align:'left'},
        // {field:'birthDate',title:'出生日期',type:'datetime',width:90,align:'left',sortable:true},
        //    {field:'createID',title:'创建人id',type:'int',width:90,hidden:true,align:'left'},
        //    {field:'creator',title:'创建人',type:'string',width:120,align:'left'},
        //    {field:'createDate',title:'创建时间',type:'datetime',width:190,align:'left',sortable:true},
        //    {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
        //    {field:'modifier',title:'修改人',type:'string',width:120,align:'left'},
        //    {field:'modifyDate',title:'修改时间',type:'datetime',width:190,align:'left',sortable:true},
        //    {field:'modifyID',title:'修改人id',type:'int',width:90,hidden:true,align:'left'},
        //    {field:'remarks',title:'注意事项/备注',type:'string',width:220,align:'left'},
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
